package com.file;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import com.util.FileUtil;

public class FileUtilTest {
	public static void main(String[] args) {
//		wholePath();
//		wholePath1();
		String filePath = "C:" + File.separator + "zzz" + File.separator;
		double size = FileUtil.getFileOrFilesSize(filePath, 1);
		System.out.println(filePath+"文件大小："+size+"B");
		List<String> namename = FileUtil.getlist(filePath);
		for (int i = namename.size()-1; i >0; i--) {
			System.out.println(namename.get(i));
		}
		
		

	}

	private static void wholePath1() {
		String path = "C:" + File.separator + "aaa" + File.separator
				+ "emp1.bin";

		FileUtil.getPath_FileNameList(path);
	}

	private static void wholePath() {
		String filePath = "C:" + File.separator + "zzz" + File.separator;
		double size = FileUtil.getFileOrFilesSize(filePath, 1);
		System.out.println(size);
		List<String> namename = FileUtil.getlist(filePath);
		for (int i = 0; i < namename.size(); i++) {
			System.out.println(namename.get(i));
		}
	}

}
